﻿using System;
using MotionFramework.AI;
using UnityEngine;

internal class FsmPatchDone : IFsmNode
{
	public string Name { private set; get; } = nameof(FsmPatchDone);

	void IFsmNode.OnEnter()
	{
		PatchEventDispatcher.SendPatchStepsChangeMsg(EPatchStates.PatchDone);
		Debug.Log("补丁流程更新完毕！");

		// 更新完成逻辑
		GameFacade.Instance.SendNotification(nameof(UpdaterDoneCommand));
	}

	void IFsmNode.OnUpdate()
	{
	}

    void IFsmNode.OnFixedUpdate()
    {
    }

    void IFsmNode.OnHandleMessage(object msg)
    {
    }

	void IFsmNode.OnExit()
	{
	}
}